PsiFile (@NotNull PsiFile file) { if (hasLocalVirtualFile(file)) return file; PsiFile originalFile = file.getUserData(PsiFileFactory.ORIGINAL_FILE); if (originalFile != null) { return getSettingsPsi(originalFile); } return null; }