boolean (@NotNull RestRunConfiguration configuration, @NotNull ConfigurationContext context) { final PsiElement element = context.getPsiLocation(); if (element == null) { return false; } PsiFile script = element.getContainingFile(); if (script == null) { return false; } final VirtualFile vFile = script.getVirtualFile(); if (vFile == null) { return false; } String path = vFile.getPath(); final String scriptName = configuration.getInputFile(); return FileUtil.toSystemIndependentName(scriptName).equals(FileUtil.toSystemIndependentName(path)); }