@@ -29,7 +29,7 @@ private PsiFileValidator() {
2929 public static boolean isScannable (@ Nullable final PsiFile psiFile ,
3030 @ NotNull final Optional <Module > module ,
3131 @ NotNull final PluginConfigurationManager pluginConfig ,
32- @ Nullable ConfigurationLocation overrideConfigLocation ) {
32+ @ Nullable final ConfigurationLocation overrideConfigLocation ) {
3333 return psiFile != null
3434 && psiFile .isValid ()
3535 && psiFile .isPhysical ()
@@ -64,10 +64,10 @@ private static boolean isGenerated(final PsiFile psiFile) {
6464 private static boolean isInSource (
6565 @ NotNull final PsiFile psiFile ,
6666 @ NotNull final PluginConfigurationManager pluginConfig ,
67- @ Nullable ConfigurationLocation overrideConfigLocation ) {
67+ @ Nullable final ConfigurationLocation overrideConfigLocation ) {
6868 final boolean shouldBeScanned = pluginConfig .getCurrent ().getScanScope () == ScanScope .Everything
6969 || (psiFile .getVirtualFile () != null
70- && ProjectFileIndex .SERVICE . getInstance (psiFile .getProject ()).isInSourceContent (psiFile .getVirtualFile ()));
70+ && ProjectFileIndex .getInstance (psiFile .getProject ()).isInSourceContent (psiFile .getVirtualFile ()));
7171 return shouldBeScanned && isInNamedScopeIfPresent (
7272 psiFile ,
7373 overrideConfigLocation != null
@@ -79,7 +79,8 @@ private static boolean isInSource(
7979 * Returns true, if the given psiFile is contained in any named scope of the given pluginConfig.
8080 * If no NamedScope is provided, true will be returned.
8181 */
82- private static boolean isInNamedScopeIfPresent (@ NotNull PsiFile psiFile , Collection <ConfigurationLocation > activeLocations ) {
82+ private static boolean isInNamedScopeIfPresent (@ NotNull final PsiFile psiFile ,
83+ final Collection <ConfigurationLocation > activeLocations ) {
8384 return activeLocations .stream ()
8485 .map (ConfigurationLocation ::getNamedScope )
8586 .flatMap (Optional ::stream )
0 commit comments